#!/usr/bin/make

CC := gcc
MAKE ?= make

CFLAGS := -O2 -Wall -Wno-unused-variable -static -I. 
LDFLAGS := 

SHARED_OBJS := nvaes.o

#NVBLOB2GO_OBJS = gpiokeys.o scrollback.o

all: nvencrypt nvdecrypt


nvencrypt: nvencrypt.c $(SHARED_OBJS)
	$(CC) $(CFLAGS) -o $@ $@.c $(SHARED_OBJS)

nvdecrypt: nvdecrypt.c $(SHARED_OBJS)
	$(CC) $(CFLAGS) -o $@ $@.c $(SHARED_OBJS)

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<


clean: 
	@rm -f  nvencrypt nvdecrypt $(SHARED_OBJS)

.PHONY: all clean
